repo: Simplify internal has_object() lookup code
authorColin Walters <walters@verbum.org>
Thu, 21 Apr 2016 19:14:51 +0000 (15:14 -0400)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Thu, 21 Apr 2016 19:50:53 +0000 (19:50 +0000)
commit8609cb036b935ce942214e9fdee6d90de0a210af
treea486b7c7a9675ad9a2dacc1a0f399e116a3885ad
parent8f8ab56211802633d39a67f60b62535fd9a9b573
repo: Simplify internal has_object() lookup code

There was some leftover intermediate cruft here I noticed
while reviewing another patch:

 - We had an output `GFile*` for that was never used
 - We required the caller to allocate the loose pathbuf, but
   none of them ever reused it
 - We had an extra intermediate function

Also while looking at this, I'm now uncertain whether some of the
callers of `_ostree_repo_has_loose_object` should really be invoking
`ostree_repo_has_object()`, but let's leave that aside for now.

Closes: #272
Approved by: alexlarsson
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c